import Vue from 'vue'
import Router from 'vue-router'
import Sy from '@/components/sy'
import Zc from '@/components/zc'
import Dl from '@/components/lkdl'
import Count from '@/components/count'
import Lbw from '@/components/libaiwu'
import Tc from '@/components/tc'
import Jfsc from '@/components/jfsc'
import Lose from '@/components/losepage'
import OneCenter from '@/components/oneCenter'
import MyMoney from '@/components/myMoney'
import MyAccount from '@/components/myAccount'
import MyIntegral from '@/components/myIntegral'
import Centerinfo from '@/components/centerinfo'
import RefillCard from '@/components/refillCard'
import PersonalData from '@/components/personalData'
import AddressAdmin from '@/components/addressAdmin'
import MyCollect from '@/components/myCollect'
import GlanceOver from '@/components/glanceOver'
import ChangePassword from '@/components/changePassword'
import MyNews from '@/components/myNews'
import FeedBack from '@/components/feedBack'
import AddAddress from '@/components/addAddress'
import Integration from '@/components/integration'
import Foot from '@/components/foot'
import Tehui from '@/components/tehui'
import Yxbz from '@/components/yxbz'
import Qcjk from '@/components/qcjk'
import Jdzg from '@/components/jdzg'
import Zssd from '@/components/zssd'
import Newuser from '@/components/newuser'
import Aboutfriday from '@/components/aboutfriday'
import Yfsm from '@/components/yfsm'
import Shfw from '@/components/shfw'
import Jmtk from '@/components/jmtk'
import Spxq from '@/components/spxq'
import Qbfl from '@/components/qbfl'
import Fridaybldb from '@/components/fridaybldb'
import Fridaybldm from '@/components/fridaybldm'
import Shoppingcart from '@/components/shoppingcart'

Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'sy',
			component: Sy,
			children: [{
				name: 'sy',
				path: '/',
				component: Count
			}, {
				name: 'tc',
				path: '/tc',
				component: Tc,
			}, {
				path: '/lbw',
				component: Lbw
			}, {
				path: '/jfsc',
				component: Jfsc
			}, {
				path: '/tehui',
				component: Tehui
			}, {
				path: '/yxbz',
				component: Yxbz
			}, {
				path: '/qcjk',
				component: Qcjk
			}, {
				path: '/jdzg',
				component: Jdzg
			}, {
				path: '/zssd',
				component: Zssd
			}, {
				path: '/newuser',
				component: Newuser
			}, {
				path: '/aboutfriday',
				component: Aboutfriday
			}, {
				path: '/yfsm',
				component: Yfsm
			}, {
				path: '/shfw',
				component: Shfw
			}, {
				path: '/jmtk',
				component: Jmtk
			}, {
				path: '/qbfl',
				component: Qbfl,

			}, {
				name: 'spxq',
				path: '/spxq',
				component: Spxq
			}, {
				name: 'fridaybldb',
				path: '/fridaybldb',
				component: Fridaybldb
			}, {
				path: '/fridaybldm',
				component: Fridaybldm
			}]
		},
		{
			name: 'oneCenter',
			path: '/oneCenter',
			component: OneCenter,
			children: [{
					path: '/oneCenter',
					component: MyAccount
				}, {
					path: '/myMoney',
					component: MyMoney
				}, {
					path: '/myIntegral',
					component: MyIntegral
				}, {
					path: '/centerinfo',
					component: Centerinfo
				}, {
					path: '/refillCard',
					component: RefillCard
				}, {
					path: '/personalData',
					component: PersonalData
				}, {
					path: '/addressAdmin',
					component: AddressAdmin,
				}, {
					path: '/addAddress',
					component: AddAddress,
				}, {
					path: '/myCollect',
					component: MyCollect
				}, {
					path: '/glanceOver',
					component: GlanceOver
				}, {
					path: '/changePassword',
					component: ChangePassword
				}, {
					path: '/myNews',
					component: MyNews
				}, {
					path: '/feedBack',
					component: FeedBack
				},
				{
					path: '/integration',
					component: Integration
				}
			]
		},
		{
			path: '/zc',
			name: 'zc',
			component: Zc
		},
		{
			path: '/dl',
			name: 'lkdl',
			component: Dl
		},
		{
			path: '*',
			component: Lose
		},
		{
			name: 'shoppingcart',
			path: '/shoppingcart',
			component: Shoppingcart
		}
	]
})